{include file='header.tpl' title=$thread.title}
{include file="discussion_header.tpl" this='overview'}



<div style="border-top : 1px solid; border-left : 
    1px solid; border-bottom : 0px solid; margin-top : 2em; padding-left : 1em;">

    <h2 style="background-color : #FFFAF4">
        <img src="graphic/32x32/agt_family.png" alt="" /> {$thread.title} 
        <span style="font-size : small; 
            display : inline;">({$thread.postcount})</span>
    </h2>

	{assign var=first value=true}

	{foreach from=$thread.reply item=reply}

	

	<div style="margin-left : 1em;">
		<h4>{$reply.user} <span style="display : inline; font-size : x-small;">
			{$reply.date} {$reply.time}</span></h4>

		<div>
		{$reply.text|strip_tags|markdown|nl2br}
		</div>

	</div>

	{if $first}
		{include file="_discussion_reply_form.tpl"}
		
		{if isset($thread.reply.1)}
                    <h3>Svar:</h3>
                {/if}
		
	{/if}

	{assign var=first value=false}
	{/foreach}

</div>



{include file='footer.tpl'}
